home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / clarnv.z / clarnv
Encoding:
Text File  |  2002-10-03  |  3.3 KB  |  133 lines

  1.  
  2.  
  3.  
  4. CCCCLLLLAAAARRRRNNNNVVVV((((3333SSSS))))                                                          CCCCLLLLAAAARRRRNNNNVVVV((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      CLARNV - return a vector of n random complex numbers from a uniform or
  10.      normal distribution
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE CLARNV( IDIST, ISEED, N, X )
  14.  
  15.          INTEGER        IDIST, N
  16.  
  17.          INTEGER        ISEED( 4 )
  18.  
  19.          COMPLEX        X( * )
  20.  
  21. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  22.      These routines are part of the SCSL Scientific Library and can be loaded
  23.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  24.      directs the linker to use the multi-processor version of the library.
  25.  
  26.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  27.      4 bytes (32 bits). Another version of SCSL is available in which integers
  28.      are 8 bytes (64 bits).  This version allows the user access to larger
  29.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  30.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  31.      only one of the two versions; 4-byte integer and 8-byte integer library
  32.      calls cannot be mixed.
  33.  
  34. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  35.      CLARNV returns a vector of n random complex numbers from a uniform or
  36.      normal distribution.
  37.  
  38. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  39.      IDIST   (input) INTEGER
  40.              Specifies the distribution of the random numbers:
  41.              = 1:  real and imaginary parts each uniform (0,1)
  42.              = 2:  real and imaginary parts each uniform (-1,1)
  43.              = 3:  real and imaginary parts each normal (0,1)
  44.              = 4:  uniformly distributed on the disc abs(z) < 1
  45.              = 5:  uniformly distributed on the circle abs(z) = 1
  46.  
  47.      ISEED   (input/output) INTEGER array, dimension (4)
  48.              On entry, the seed of the random number generator; the array
  49.              elements must be between 0 and 4095, and ISEED(4) must be odd.
  50.              On exit, the seed is updated.
  51.  
  52.      N       (input) INTEGER
  53.              The number of random numbers to be generated.
  54.  
  55.      X       (output) COMPLEX array, dimension (N)
  56.              The generated random numbers.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CCCCLLLLAAAARRRRNNNNVVVV((((3333SSSS))))                                                          CCCCLLLLAAAARRRRNNNNVVVV((((3333SSSS))))
  71.  
  72.  
  73.  
  74. FFFFUUUURRRRTTTTHHHHEEEERRRR DDDDEEEETTTTAAAAIIIILLLLSSSS
  75.      This routine calls the auxiliary routine SLARUV to generate random real
  76.      numbers from a uniform (0,1) distribution, in batches of up to 128 using
  77.      vectorisable code. The Box-Muller method is used to transform numbers
  78.      from a uniform to a normal distribution.
  79.  
  80.  
  81. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  82.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  83.  
  84.      This man page is available only online.
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.